package com.evl.common.persistence.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author weijunlong
 * @since 2017-07-12
 */
@TableName("refund_rule")
public class RefundRule extends Model<RefundRule> {

    private static final long serialVersionUID = 1L;

    /**
     * 退票规则id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 最小时间（精度：小时）
     */
	@TableField("min_time")
	private Integer minTime;
    /**
     * 最大时间（精度：小时）
     */
	@TableField("max_time")
	private Integer maxTime;
    /**
     * 退款比例
     */
	@TableField("refund_ratio")
	private Double refundRatio;
    /**
     * 退款规则详情
     */
	private String detail;
    /**
     * 创建人id
     */
	@TableField("create_id")
	private Integer createId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 修改人id
     */
	@TableField("update_id")
	private Integer updateId;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getMinTime() {
		return minTime;
	}

	public void setMinTime(Integer minTime) {
		this.minTime = minTime;
	}

	public Integer getMaxTime() {
		return maxTime;
	}

	public void setMaxTime(Integer maxTime) {
		this.maxTime = maxTime;
	}

	public Double getRefundRatio() {
		return refundRatio;
	}

	public void setRefundRatio(Double refundRatio) {
		this.refundRatio = refundRatio;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public Integer getCreateId() {
		return createId;
	}

	public void setCreateId(Integer createId) {
		this.createId = createId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getUpdateId() {
		return updateId;
	}

	public void setUpdateId(Integer updateId) {
		this.updateId = updateId;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
